﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using DAL;
using Public;

namespace BUS
{
    public class TaiKhoan_BUS
    {
        TaiKhoan_DAL tk_dal = new TaiKhoan_DAL();
        TaiKhoan_PB tk_pb = new TaiKhoan_PB();

        public DataTable Login(string taikhoan, string matkhau)
        {
            return tk_dal.Login(taikhoan, matkhau);
        }
        public DataTable LayDSDonVi()
        {
            return tk_dal.LayDSDonVi();
        }
        public int ThemTaiKhoan(TaiKhoan_PB tk_pb)
        {
            return tk_dal.ThemTaiKhoan(tk_pb);
        }
        public int SuaTaiKhoan(TaiKhoan_PB tk_pb)
        {
            return tk_dal.SuaTaiKhoan(tk_pb);
        }
        public int XoaTaiKhoan(TaiKhoan_PB tk_pb)
        {
            return tk_dal.XoaTaiKhoan(tk_pb);
        }
        public DataTable LayDSTaiKhoan()
        {
            return tk_dal.LayDSTaiKhoan();
        }
        public int ThayDoiMK(TaiKhoan_PB tk_pb)
        {
            return tk_dal.ThayDoiMK(tk_pb);
        }
        public bool KiemTraMK(string taikhoan, string matkhau)
        {
            return tk_dal.CheckExists(taikhoan, matkhau);
        }
        public DataTable LayMatKhau(string taikhoan)
        {
            return tk_dal.LayMatKhau(taikhoan);
        }
    }
}
